<?php

use Phinx\Migration\AbstractMigration;

class AddColumnStepCategoryDependencyInProjectTemplateTable extends AbstractMigration
{
    public function up()
    {
        $this->table("project_template")
            ->addColumn("step_category_dependency", 'json', [
                'null' => true,
                'comment' => '存储工序一级分类的依赖关系'
            ])
            ->save();
    }

    public function down()
    {
        $this->table("project_template")
            ->removeColumn("step_category_dependency")
            ->save();
    }
}
